package com.peas.platform.module.icims.base.sys.enums;

import com.peas.platform.common.core.enums.BaseEnum;
import com.peas.platform.common.core.enums.CommonElType;

public enum CommonOper implements BaseEnum {

    add("add", "新增", CommonElType.primary),
    update("update", "修改", CommonElType.warning),
    delete("delete", "删除", CommonElType.danger),
    ;

    private final String key;
    private final String value;
    private final CommonElType elTagType;

    CommonOper(String key, String value, CommonElType elTagType) {
        this.key = key;
        this.value = value;
        this.elTagType = elTagType;
    }

    @Override
    public String getKey() {
        return this.key;
    }

    @Override
    public String getValue() {
        return this.value;
    }

    @Override
    public CommonElType getElTagType() {
        return elTagType;
    }

}
